#!/bin/bash

echo '1.	安装配置消息队列组件';
yum install rabbitmq-server -y

echo '设置服务开机启动';
systemctl enable rabbitmq-server.service
systemctl start rabbitmq-server.service

echo '添加openstack 用户设置密码为123456';
rabbitmqctl add_user openstack 123456
echo 'openstack用户的权限配置';
rabbitmqctl set_permissions openstack ".*" ".*" ".*"

echo '-----------------------------------------------------'
echo '              rabbitmq 配置完成                      '
echo '-----------------------------------------------------'
